<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<div class="page-sidebar nav-collapse collapse">

	<%
		String url = request.getRequestURL().toString();
	%>

	<!-- BEGIN SIDEBAR MENU -->

	<ul id="page-sidebar-menu" class="page-sidebar-menu">

		<li>
			<!-- BEGIN SIDEBAR TOGGLER BUTTON -->

			<div class="sidebar-toggler hidden-phone"></div> <!-- BEGIN SIDEBAR TOGGLER BUTTON -->

		</li>

		

		<%
			if (url.indexOf("/home") != -1) {
		%>
		<li class="active start">
			<%
				} else {
			%>
		
		<li class="start">
			<%
				}
			%> <a href="<%=request.getContextPath()%>/home.htm"> <i
				class="icon-home"></i> <span class="title">控制面板</span>

		</a>

		</li>

		
	</ul>

	<!-- END SIDEBAR MENU -->

	<script>
	var contextPath = "<%=request.getContextPath()%>";
	
		jQuery(document).ready(function() {    
			
			$.ajax({
				type : "GET",
				url : "<%=request.getContextPath()%>/sys/operator/menus",
				dataType : 'json',
				async : false,
				success : function(data) {
					
					 $('#page-sidebar-menu').sidebarMenu({
						 data : data
					 });
				},
				error : function(data, status) {
					noty({layout: 'center',text: "获取菜单出错啦",type: 'error', timeout: 2000 });
				}
			});
		   

		});
		
		
	</script>

</div>
<!-- /Sidebar -->